@use 'sass:color';
.question-and-answer-page{
    .xhs-content-wrap{
        position: absolute;
        background-color: #E0E7F7;
        height: 1000px;
        overflow: hidden;
        top: 0;
        left: 50%;
        width: 750px;
        margin-left: -375px;
        transform-origin: 0% 0%;

        .tag{
            position: absolute;
            left: 0;
            right: 0;
            top: 40%;
            height: 20px;
            // outline: 1px solid #f00;
            z-index: 1;
            background-color: #E0E7F7;
            // border: 1px solid #f00;
        }
        &.p5{
            .tag{
                display: none;
            }
            .input{
                
            }
        }

        .bg-people{
            position: absolute;
            bottom: -10px;
            left: 0;
            right: 0;
            height: 60%;
            // outline: 1px solid #f00;
            background-image: url('@/assets/kj/yutong.png');
            background-size: auto 100%;
            background-position: center center;
            background-repeat: no-repeat;
            &.p2{
                background-image: url('@/assets/kj/p00.png');
            }
            &.p3{
                height: 48%;
                background-image: url('@/assets/kj/p01.png');
            }
            &.p4{
                height: 52%;
                background-image: url('@/assets/kj/p02.png');
            }
            &.p5{
                height: 100%;
                bottom: 0;
                background-image: url('@/assets/kj/p03.jpg');
            }
        }
        .input{
            position: absolute;
            top: 30px;
            left: 30px;
            right: 30px;
            // outline: 1px solid #f00;
            padding: 10px;
            border-radius: 4px;
            will-change: box-shadow;
            transition: box-shadow 0.2s ease-in-out;
            font-size: 90px;
            font-weight: bold;
            letter-spacing: 0px;
            color: #4d4d4d;
            z-index: 2;
            div{
                font-weight: bold;
            }
            em{
                position: relative;
                display: inline-block;
                z-index: 10;
                span{
                    font-weight: bold;
                }
                &:after{
                    position: absolute;
                    content: "";
                    background-color: #ff9a00;
                    left: 0;
                    right: 0;
                    height: 8px;
                    z-index: -1;
                    bottom: 15px;
                }
                &:before{
                    position: absolute;
                    content: "";
                    background-color: #ff9a00;
                    left: 0;
                    right: 0;
                    height: 8px;
                    z-index: -1;
                    bottom: 5px;
                }
            }
            &:focus{
                outline: none;
                box-shadow: 0 0 0 1px rgba(#ed7020, 0.55);
                border-color: transparent;
            }
        }
    }

    .xhs-config-list{
        position: fixed;
        right: 24px;
        top: 20px;
        .list-item{
            display: flex;
            flex-direction: column;
            margin-bottom: 10px;
            >div{
                display: flex;
                align-items: center;
                input{
                    cursor: pointer;
                    &[type=radio]{
                        margin-top: -4px;
                    }
                }
                label{
                    cursor: pointer;
                }
                >input:not(:first-child){
                    margin-left: 15px;
                }
            }
            >input{
                height: 40px;
                width: 240px;
                border: 1px solid #ccc;
                border-radius: 4px;
                padding: 10px;
                box-sizing: border-box;
                &:focus{
                    outline: none;
                    box-shadow: 0 0 0 1px rgba(#ed7020, 0.55);
                    border-color: transparent;
                }
            }
        }
        label{
            margin-bottom: 4px;
        }
    }

    .close-setting-btn{
        display: none;
        position: absolute;
        top: 10px;
        right: 10px;
        background-color: rgba(#000, 0.7);
        border-radius: 50%;
        padding: 2px 7px;
        box-shadow: 0 0 6px 3px rgba(#fff, 0.2);
    }

    .xhs-setting-btn{
        display: none;
        bottom: 30px;
    }
}

@media screen and (min-height: 900px) {
    .question-and-answer-page{
        .xhs-content-wrap{
            top: 50%;
            margin-top: -500px;
        }
    }
}

@media screen and (max-width: 750px) {
    .question-and-answer-page{
        .xhs-content-wrap{
            top: 0;
            left: 0;
            margin-left: 0;
        }

        .close-setting-btn{
            display: block;
        }

        .xhs-config-list{
            background-color: rgba(#000, 0.8);
            top: 0;
            bottom: 0;
            right: 0;
            color: #fff;
            font-size: 11px;
            padding: 50px 12px 12px;
            z-index: 3;
            transform: translateX(300px);
            opacity: 0;
            will-change: transform, opacity;
            transition: opacity 0.4s linear, transform 0.4s ease-out;
            .list-item{
                margin-bottom: 10px;
                >div{
                    input{
                        &[type=radio]{
                            margin-top: -4px;
                        }
                    }
                    >input:not(:first-child){
                        margin-left: 8px;
                    }
                }
                >input{
                    height: 28px;
                    width: 200px;
                    padding: 10px;
                }
            }
            &.active{
                transform: translateX(0px);
                opacity: 1;
            }
        }

        .xhs-setting-btn{
            display: block;
            bottom: 55px !important;
        }
    }
}